package io;

import com.aliasi.tracker.InputDocument;

public class AceInputDocument 
extends InputDocument 

{
    private final String mSource;
    String mOrigContent;

    AceInputDocument(String id, String source, String title, String content, String origContent) {
        super(id,title,content);
        mSource = source;
        mOrigContent = origContent;
    }

    public String origText() {
        return mOrigContent;
    }

    public String source() {
        return mSource;
    }

    public String toString() {
        StringBuffer sb = new  StringBuffer();
        sb.append("ID: " + id());
        sb.append("Source: " + source());
        sb.append("Title: " + title());
        sb.append("Content: " + content());
                       //return source() + "\n" + super.toString();
        return sb.toString();
    }

    public boolean isUnProcessableDocument() {
        return source() == null 
            || id() == null
            || title() == null
            || content() == null;
    }

    

}
